package com.rock.upms.model;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

public class UpmsSystem implements Serializable {

	/**
	 * id
	 *
	 * @mbg.generated
	 */
	private Integer id;
	/**
	 * 系统编号
	 *
	 * @mbg.generated
	 */
	private String systemCode;
	/**
	 * 系统名称
	 *
	 * @mbg.generated
	 */
	private String systemName;
	/**
	 * 根目录
	 *
	 * @mbg.generated
	 */
	private String basepath;
	/**
	 * 备注
	 *
	 * @mbg.generated
	 */
	private String remarks;
	/**
	 * 图标
	 *
	 * @mbg.generated
	 */
	private String icon;
	/**
	 * 访问方式0登录1授权
	 *
	 * @mbg.generated
	 */
	private String visualType;
	/**
	 * 是否显示0不显示1显示
	 *
	 * @mbg.generated
	 */
	private String isShow;
	/**
	 * 创建时间
	 *
	 * @mbg.generated
	 */
	private Date createTime;
	/**
	 * 创建人
	 *
	 * @mbg.generated
	 */
	private String createName;
	/**
	 * 顺序号
	 *
	 * @mbg.generated
	 */
	private Integer seqno;
	private static final long serialVersionUID = 1L;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSystemCode() {
		return systemCode;
	}

	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}

	public String getSystemName() {
		return systemName;
	}

	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}

	public String getBasepath() {
		return basepath;
	}

	public void setBasepath(String basepath) {
		this.basepath = basepath;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getVisualType() {
		return visualType;
	}

	public void setVisualType(String visualType) {
		this.visualType = visualType;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public Integer getSeqno() {
		return seqno;
	}

	public void setSeqno(Integer seqno) {
		this.seqno = seqno;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", systemCode=").append(systemCode);
		sb.append(", systemName=").append(systemName);
		sb.append(", basepath=").append(basepath);
		sb.append(", remarks=").append(remarks);
		sb.append(", icon=").append(icon);
		sb.append(", visualType=").append(visualType);
		sb.append(", isShow=").append(isShow);
		sb.append(", createTime=").append(createTime);
		sb.append(", createName=").append(createName);
		sb.append(", seqno=").append(seqno);
		sb.append("]");
		return sb.toString();
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		UpmsSystem other = (UpmsSystem) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getSystemCode() == null ? other.getSystemCode() == null : this.getSystemCode().equals(other.getSystemCode()))
				&& (this.getSystemName() == null ? other.getSystemName() == null : this.getSystemName().equals(other.getSystemName()))
				&& (this.getBasepath() == null ? other.getBasepath() == null : this.getBasepath().equals(other.getBasepath()))
				&& (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
				&& (this.getIcon() == null ? other.getIcon() == null : this.getIcon().equals(other.getIcon()))
				&& (this.getVisualType() == null ? other.getVisualType() == null : this.getVisualType().equals(other.getVisualType()))
				&& (this.getIsShow() == null ? other.getIsShow() == null : this.getIsShow().equals(other.getIsShow()))
				&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
				&& (this.getCreateName() == null ? other.getCreateName() == null : this.getCreateName().equals(other.getCreateName()))
				&& (this.getSeqno() == null ? other.getSeqno() == null : this.getSeqno().equals(other.getSeqno()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getSystemCode() == null) ? 0 : getSystemCode().hashCode());
		result = prime * result + ((getSystemName() == null) ? 0 : getSystemName().hashCode());
		result = prime * result + ((getBasepath() == null) ? 0 : getBasepath().hashCode());
		result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
		result = prime * result + ((getIcon() == null) ? 0 : getIcon().hashCode());
		result = prime * result + ((getVisualType() == null) ? 0 : getVisualType().hashCode());
		result = prime * result + ((getIsShow() == null) ? 0 : getIsShow().hashCode());
		result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
		result = prime * result + ((getCreateName() == null) ? 0 : getCreateName().hashCode());
		result = prime * result + ((getSeqno() == null) ? 0 : getSeqno().hashCode());
		return result;
	}
}